package cn.zyq.ykb.controller.h5.course;

import org.springframework.security.access.prepost.PreAuthorize;
import cn.zyq.ykb.system.ry.util.poi.ExcelUtil;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.annotation.Log;
import cn.zyq.ykb.system.ry.enums.BusinessType;
import cn.zyq.ykb.beans.course.CourseChart;
import cn.zyq.ykb.service.course.CourseChartService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.common.PageParam;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 课程-轮播图Controller
 *
 * @author SystemAuth
 * @date 2023-06-01
 */

@RestController(value = "H5CourseChartController")
@RequestMapping("/api/courseChart")
@Api(tags = "课程-轮播图接口")
public class CourseChartController extends BaseController {

    @Autowired
    private CourseChartService courseChartService;

    /**
     * 查询课程-轮播图列表
     */
    @ApiOperation(value = "列表", response = CourseChart.class)
    @PostMapping("/list")
    public Object list(@RequestBody PageParam pageParam) {
        return this.courseChartService.selectCourseChartList(pageParam);
    }

}
